package org.nf.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author czl
 * @Date 2024-04-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    private String name;
    private String sex;
    private int age;


    public String showInfo(){
        return "[" + "name" + this.name + "sex" + this.sex + "age" + this.age + "]";
    }

    public String sayHello(String name){
       return "你好," + name;
    }
}
